package cn.imvc.app.models;

import java.util.Date;
import java.util.List;

import org.springframework.data.domain.Page;

import cn.imvc.app.entities.DealerApply;
import cn.imvc.app.entities.Member;
import cn.imvc.data.domain.ViewRequest;

public interface DealerApplyModel{
	Page<DealerApply> find(ViewRequest viewRequest);

	DealerApply get(int id);

	DealerApply save(DealerApply entity);

	DealerApply update(DealerApply entity);

	void delete(int id);

	void deleteBatch(int[] ids);
	
	List<DealerApply> checkUnFinishedOrder(int memberId);
	
	DealerApply saveDealerApplyOrder(int levelId,Member member);
	
	DealerApply findByCode(String code);
	
	void finishPay(String code,String payCode,Date payTime);
	
	
}